package com.gxuwz.eschool.fragment;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.gxuwz.eschool.DetailedQueryActivity;
import com.gxuwz.eschool.InformationContentActivity;
import com.gxuwz.eschool.R;
//新闻公告-通知公告
public class NotificationAnnouncementFragment extends Fragment {


    private RelativeLayout rl_item_top;

    public NotificationAnnouncementFragment() {
        // Required empty public constructor
    }



    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_notification_announcement, container, false);

        // 初始化RelativeLayout并设置点击监听器
        rl_item_top = rootView.findViewById(R.id.rl_item_top);
        rl_item_top.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), InformationContentActivity.class);
                startActivity(intent);
            }
        });
        return rootView;
    }
}